export const columnsDataTop = [
  {
    caption: '序号',
    dataField: 'rowIndex',
    width: 80,
    allowFiltering: false,
    allowSorting: false,
    // cellRender: (e) => {
    //   return <span className="row-index">{e.data.rowIndex}</span>;
    // },
    // cellTemplate: function (container: any) {
    //   console.log(`🚀--Nice ~ container Element:`, container.parentElement);
    //   console.log(`🚀--Nice ~ container parentNode:`, container.parentNode);
    //   const span = document.createElement('span');
    //   const index = container.parentElement.getAttribute('aria-rowindex');
    //   span.innerText = index;
    //   span.classList.add('row-index');
    //   container.appendChild(span);
    // },
  },
  {
    dataField: 'ZY',
    minWidth: 120,
    caption: '摘要',
    alignment: 'left',
  },
  {
    dataField: 'YSKMBH',
    minWidth: 120,
    caption: '科目编号',
    alignment: 'left',
  },
  {
    dataField: 'KMMC',
    minWidth: 120,
    caption: '科目名称',
    alignment: 'left',
  },
  {
    dataField: 'JFJE',
    dataTypeCustom: 'money-number',
    dataType: 'number',
    caption: '借方',
    with: 120,
    editorOptions: {
      format: { type: 'decimal', currency: 'CNY', precision: 2 },
    },
    alignment: 'right',
  },
  {
    dataField: 'DFJE',
    dataTypeCustom: 'money-number',
    dataType: 'number',
    caption: '贷方',
    with: 120,
    editorOptions: {
      format: { type: 'decimal', currency: 'CNY', precision: 2 },
    },
    alignment: 'right',
  },
  {
    dataField: 'HSXM',
    minWidth: 120,
    caption: '核算项目',
    alignment: 'left',
  },
  {
    dataField: 'dfkmmc',
    minWidth: 120,
    caption: '对方科目',
    alignment: 'left',
  },
];
export const columnsDataBottom = [
  {
    caption: '序号',
    dataField: 'rowIndex',
    width: 80,
    allowFiltering: false,
    allowSorting: false,
    // cellRender: (e) => {
    //   return <span className="row-index">{e.data.rowIndex}</span>;
    // },
    // cellTemplate: function (container: any) {
    //   const span = document.createElement('span');
    //   const index = container.parentElement.getAttribute('aria-rowindex');
    //   span.innerText = index;
    //   span.classList.add('row-index');
    //   container.appendChild(span);
    // },
  },
  {
    dataField: 'ZY',
    minWidth: 120,
    caption: '摘要',
    alignment: 'left',
  },
  {
    dataField: 'KMMC',
    minWidth: 120,
    caption: '科目名称',
    alignment: 'left',
  },

  {
    dataField: 'HSXMLXMC',
    minWidth: 120,
    caption: '核算项目类型',
    alignment: 'left',
  },
  {
    dataField: 'HSXMMC',
    minWidth: 120,
    caption: '核算项目',
    alignment: 'left',
  },

  {
    dataField: 'JFJE',
    dataTypeCustom: 'money-number',
    dataType: 'number',
    caption: '借方',
    with: 120,
    editorOptions: {
      format: { type: 'decimal', currency: 'CNY', precision: 2 },
    },
    alignment: 'right',
  },
  {
    dataField: 'DFJE',
    dataTypeCustom: 'money-number',
    dataType: 'number',
    caption: '贷方',
    with: 120,
    editorOptions: {
      format: { type: 'decimal', currency: 'CNY', precision: 2 },
    },
    alignment: 'right',
  },
  {
    dataField: 'dfkmmc',
    minWidth: 120,
    caption: '对方科目',
    alignment: 'left',
  },
];
